﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Brjostagjof_H4.Models.About>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Brjóstagjöf.is | Styrkir
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h3>Styrkir</h3>
    <table id="main-table">
        <tr>

            <td id="main-table-left">
        <% using (Html.BeginForm()) 
            {%>
            <%: Html.ValidationSummary(true) %>
            
                <div class="editor-field">
                    <%= Html.TextAreaFor(model => model.content, new { @class = "donate-edit-textarea", @id  = "editor" })%>
                    <%: Html.ValidationMessageFor(model => model.content) %>
                </div>
                <script type="text/javascript">
                    CKEDITOR.replace('editor'/*, { extraPlugins: 'bbcode' }*/);
			    </script>
            
                <div>Uppfært síðast <%: String.Format("{0:g}", Model.date_changed) %> af <%: Model.changed_by %></div>
            
                <p>
                    <input id="button" type="submit" value="Uppfæra" />
                </p>

         <% } %>
            </td>

            <td id="main-table-right">
                <div class="options">
                    <% if (User.IsInRole("Administrators")){Html.RenderPartial("~/Views/Home/ProfileAdminMenu.ascx", "Model");} %>
                    <% else if (User.IsInRole("Professionals")) { Html.RenderPartial("~/Views/Home/ProfileProMenu.ascx", "Model"); } %>
                    <% else { Html.RenderPartial("~/Views/Home/ProfileMenu.ascx", "Model"); } %>
                </div>
            </td>

        </tr>
    </table>
   
</asp:Content>
